import requests

r = requests.get('https://www.baidu.com/?tn=95834041_hao_pg')
print(r.status_code)